#pragma once
#include <iostream>
#include <string>
#include <memory>
#include <unordered_map>
#include "epoller.hpp"
#include "connection.hpp"
namespace net
{
    class Reactor
    {
    private:
        Channel::ptr _epoller;             //事件监控信道
        std::unordered_map<int,Connection::ptr> _conns;     //连接管理器：fd : conn
    public:
        Reactor()
        {
        }
        ~Reactor()
        {
        }
    };
}